/**
 * @Author: Yosoo
 * @Date: 2025/5/17 10:12
 * @Description:
 */
package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
    void save(DishDTO dishDTO);

    /**
     * 菜品分页查询
     * @Author:     Yosoo
     * @Date:       2025/5/17 11:11
     * @Description:
     * @param dishPageQueryDTO
     * @return
     */
    PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);



    /**
     * 批量删除菜品
     *
     * @param ids
     * @Author: Yosoo
     * @Date: 2025/5/17 11:27
     * @Description:
     */
    void deleteBatch(List<Long> ids);

    DishVO getDishWithFlavorById(Long id);

    /**
     * 修改菜品
     * @Author:     Yosoo
     * @Date:       2025/5/17 14:36
     * @Description:
     * @param dishDTO
     */
    void updateDishWithFlavor(DishDTO dishDTO);

    void updateStatus(Dish dish);

    /**
     * 根据分类查询菜品
     * @Author:     Yosoo
     * @Date:       2025/5/19 09:04
     * @Description:
     * @param categoryId
     * @return
     */
    List<DishVO> list(Long categoryId);
}
